<?php

namespace app\admin\validate;

use think\Validate;

class Chase extends Validate {

    /**
     * 规则定义
     * @var array
     */
    protected $rule = [
        'name' => 'require|min:2|max:30',
        'sort' => 'number'
    ];

    /**
     * 提示信息定义
     * @var array
     */
    protected $message = [
        'name' => '请输入2-30位计划名称',
        'sort' => '请输入数字排序',
    ];

    /**
     * 场景定义
     * @var array
     */
    public $scene = [
        'operateAjax' => ['name', 'sort'],
    ];
}